/** @type {import('next').NextConfig} */
const nextConfig = {
    output: 'standalone',
    experimental: {
        serverActions: {
            allowedOrigins: [
                '176.123.163.139', '176.123.163.139:80', '176.123.163.139:443',
                'crossferry.ru', 'crossferry.ru:443'
            ],
        }
    },
    images: {
        loader: 'custom',
        loaderFile: './src/custom/image/loader.ts',
        remotePatterns: [
            {
                protocol: 'http',
                hostname: 'localhost',
                port: '8000',
                pathname: '/**'
            },
            {
                protocol: 'https',
                hostname: 'crossferry.ru',
                port: '443',
                pathname: '/**'
            },
            {
                protocol: 'https',
                hostname: '176.123.163.139',
                port: '443',
                pathname: '/**'
            },
        ],
    },
};

export default nextConfig;

